package com.ishanggang.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ishanggang.entity.IsgDictShopInfo;
import org.apache.ibatis.annotations.Param;

@DS("quickBi")
public interface IsgDictStoreInfoMapper {
    IsgDictShopInfo selectById(@Param(value = "id") Long id);

    Long selectMaxId();

    /**
     * 标记为重复门店
     * @param id
     * @param sameShopId
     * @param distance
     * @return
     */
    int updateSameShopFlag(@Param(value = "id") Long id,
                           @Param(value = "sameShopId") Long sameShopId,
                           @Param(value = "ka") String ka,
                           @Param(value = "distance") double distance);
}
